<template>
	<view class="container">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script setup>
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';

const content = ref('');
onLoad(() => {
	let str = uni.getStorageSync('userinfo');
	const userInfo = JSON.parse(str);
	content.value = userInfo.invoice.agent_info;
	console.log(typeof content.value);
});
</script>

<style scoped lang="scss">
.container {
	padding: 12rpx 28rpx 80rpx;
	background-color: #fff;
	.h1 {
		line-height: 98rpx;
		font-size: 28rpx;
		font-weight: bold;
		text-align: center;
	}
	.h2 {
		padding: 40rpx 0;
		line-height: 1.5;
		font-size: 28rpx;
	}
	.p {
		line-height: 1.5;
		font-size: 28rpx;
	}
}
</style>
